echo Host Checker Uninstallation if exist "%AppData%\Pulse Secure\Host Checker\uninstall.exe" ( start "Host Checker" /W "%AppData%\Pulse Secure\Host Checker\uninstall.exe" ) @echo OFF reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set _OS_=32BIT || set _OS_=64BIT if %_OS_%==32BIT echo This is a 32bit operating system if %_OS_%==64BIT echo This is a 64bit operating system echo Secure Application Manager Uninstallation If %_OS_%==32BIT ( if exist "%SystemDrive%\Program Files\Pulse Secure\Secure Application Manager\UninstallSAM.exe" ( start "Secure Application Manager" /W "%SystemDrive%\Program Files\Pulse Secure\Secure Application Manager\UninstallSAM.exe" ) ) ELSE ( if exist "%SystemDrive%\Program Files (x86)\Pulse Secure\Secure Application Manager\UninstallSAM.exe" ( start "Secure Application Manager" /W "%SystemDrive%\Program Files (x86)\Pulse Secure\Secure Application Manager\UninstallSAM.exe" ) ) echo Component Manager Uninstallation If %_OS_%==32BIT ( if exist "%SystemDrive%\Program Files\Common Files\Pulse Secure\Component Manager\uninstall.exe" ( start "Component Manager" /W "%SystemDrive%\Program Files\Common Files\Pulse Secure\Component Manager\uninstall.exe" ) ) ELSE ( if exist "%SystemDrive%\Program Files (x86)\Common Files\Pulse Secure\Component Manager\uninstall.exe" ( start "Component Manager" /W "%SystemDrive%\Program Files (x86)\Common Files\Pulse Secure\Component Manager\uninstall.exe" ) ) echo Pulse Secure Uninstallation If %_OS_%==32BIT ( if exist "%SystemDrive%\Program Files\Pulse Secure\Pulse\PulseUninstall.exe" ( start "Pulse Secure" /W "%SystemDrive%\Program Files\Pulse Secure\Pulse\PulseUninstall.exe" ) ) ELSE ( if exist "%SystemDrive%\Program Files (x86)\Pulse Secure\Pulse\PulseUninstall.exe" ( start "Pulse Secure" /W "%SystemDrive%\Program Files (x86)\Pulse Secure\Pulse\PulseUninstall.exe" ) )